home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
prog
/
pbc23c.arj
/
MSHUFFST.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
650b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB MatShuffleSt (Array() AS STRING, StartPosn%, EndPosn%)
Elements% = EndPosn% - StartPosn% + 1
FOR tmp% = StartPosn% TO EndPosn%
SWAP Array(tmp%), Array(RndI%(Elements%) + StartPosn%)
NEXT
END SUB